/**
 * author wen
 * cunyu
 * email wjd_13@hotmail.com
 */
package com.cunyu.bean;

/**
 * 客户池 bean
 *
 * @author win
 * 2019/04/24-11:28
 */
public class OrderPool {

    //private Integer id ;
    //来源
    private Integer source ;
    // 来源用户ID
    private Integer uid ;
    // 状态
    //private Integer state ;
    //类型
    private Integer type ;
    //创建时间
    //private String ctime ;
    //姓名
    private String name;
    //电话
    private Long tel;
    //年龄
    private Integer age;
    //地址
    //private String address;
    //贷款申请时间
    //private Date loan_time;
    //贷款金额
    private Integer loan_amount;
    //贷款年限
    private Integer loan_period;
    //贷款用途
    private Integer loan_use;
    //城市
    private Integer citycode;
    //户籍
    private Integer census;
    //社保
    private Integer social_security;
    //公积金
    private Integer provident_fund;
    //职业
    private Integer job;
    //月收入
    private Integer income;
    //收入形式
    private Integer incometype;
    //有无信用卡
    private Integer creditcard;
    //有无微粒贷
    private Integer haswld;
    //有无借呗
    //private String hasjb;
    //有无房产
    private Integer hashouse;
    //有无车
    private Integer hascar;
    //有无寿险
    private Integer haslife;
    //城市名称
    private String city;
    //是否优质单
    private Integer hq;
    //折扣0.95
    private Integer discount;

    private Integer carpawn ;

    private Integer housepawn ;

    private Integer sex ; //0 女 1 男

    private Integer price ;

    private String qcode ;

    //征信
    private Integer credit ;

    // 芝麻分
    private Integer zmscore ;

    public Integer getZmscore() {
        return zmscore;
    }

    public void setZmscore(Integer zmscore) {
        this.zmscore = zmscore;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public int hqScore(){
        int score = 0 ;
        //①社保、公积金、车、房、寿险保单、是公务员有2样②当日订单
        if(social_security == 1){
            score += 1 ;
        }
        if(provident_fund == 1){
            score += 1 ;
        }
        if(hascar < 3){
            score += 1 ;
        }
        if(hashouse < 3){
            score += 1 ;
        }
        if(haslife == 1){
            score += 1 ;
        }
        if(job == 1){
            score += 1 ;
        }
        return score ;
    }

    public int orderMoney(int hqScore){
        if(source ==1 ){
            return 10 ;
        }
        //改变单子价格
        if(hqScore >= 2){
            return 33 ;
        }
        return 26 ;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getTel() {
        return tel;
    }

    public void setTel(Long tel) {
        this.tel = tel;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getLoan_amount() {
        return loan_amount;
    }

    public void setLoan_amount(Integer loan_amount) {
        this.loan_amount = loan_amount;
    }

    public Integer getLoan_period() {
        return loan_period;
    }

    public void setLoan_period(Integer loan_period) {
        this.loan_period = loan_period;
    }

    public Integer getLoan_use() {
        return loan_use;
    }

    public void setLoan_use(Integer loan_use) {
        this.loan_use = loan_use;
    }

    public Integer getCitycode() {
        return citycode;
    }

    public void setCitycode(Integer citycode) {
        this.citycode = citycode;
    }

    public Integer getCensus() {
        return census;
    }

    public void setCensus(Integer census) {
        this.census = census;
    }

    public Integer getSocial_security() {
        return social_security;
    }

    public void setSocial_security(Integer social_security) {
        this.social_security = social_security;
    }

    public Integer getProvident_fund() {
        return provident_fund;
    }

    public void setProvident_fund(Integer provident_fund) {
        this.provident_fund = provident_fund;
    }

    public Integer getJob() {
        return job;
    }

    public void setJob(Integer job) {
        this.job = job;
    }

    public Integer getIncome() {
        return income;
    }

    public void setIncome(Integer income) {
        this.income = income;
    }

    public Integer getIncometype() {
        return incometype;
    }

    public void setIncometype(Integer incometype) {
        this.incometype = incometype;
    }

    public Integer getCreditcard() {
        return creditcard;
    }

    public void setCreditcard(Integer creditcard) {
        this.creditcard = creditcard;
    }

    public Integer getHaswld() {
        return haswld;
    }

    public void setHaswld(Integer haswld) {
        this.haswld = haswld;
    }

    public Integer getHashouse() {
        return hashouse;
    }

    public void setHashouse(Integer hashouse) {
        this.hashouse = hashouse;
    }

    public Integer getHascar() {
        return hascar;
    }

    public void setHascar(Integer hascar) {
        this.hascar = hascar;
    }

    public Integer getHaslife() {
        return haslife;
    }

    public void setHaslife(Integer haslife) {
        this.haslife = haslife;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getHq() {
        return hq;
    }

    public void setHq(Integer hq) {
        this.hq = hq;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getCarpawn() {
        return carpawn;
    }

    public void setCarpawn(Integer carpawn) {
        this.carpawn = carpawn;
    }

    public Integer getHousepawn() {
        return housepawn;
    }

    public void setHousepawn(Integer housepawn) {
        this.housepawn = housepawn;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getQcode() {
        return qcode;
    }

    public void setQcode(String qcode) {
        this.qcode = qcode;
    }
}
